import request from '@/utils/request'

// 查询街道台账列表
export function listStreet_ledger(query) {
  return request({
    url: '/business/street_ledger/list',
    method: 'get',
    params: query
  })
}

// 查询街道台账详细
export function getStreet_ledger(id) {
  return request({
    url: '/business/street_ledger/' + id,
    method: 'get'
  })
}

// 新增街道台账
export function addStreet_ledger(data) {
  return request({
    url: '/business/street_ledger',
    method: 'post',
    data: data
  })
}

// 修改街道台账
export function updateStreet_ledger(data) {
  return request({
    url: '/business/street_ledger',
    method: 'put',
    data: data
  })
}

// 删除街道台账
export function delStreet_ledger(id) {
  return request({
    url: '/business/street_ledger/' + id,
    method: 'delete'
  })
}
